/**
 * Context 类组件使用的另一个方式，主要是获取数据时的操作
 */

import React, { Component } from "react";

import MyContext from "./contexts/MyContext";
import Hello from "./components/Hello";

export default class App extends Component {
  render() {
    return (
      <MyContext.Provider value="里斯">
        <div>
          <h1>App</h1>
          <hr />
          <Hello />
        </div>
      </MyContext.Provider>
    );
  }
}
